#ifndef __UI_VIDEO_DOWNBAR__H__
#define __UI_VIDEO_DOWNBAR__H__

#include	<MZFCLIB.h>
#include	"iUiButton.h"
#include	"UiStatusBar.h"

typedef enum _tagDownBarBtnDisplay
{
//	VIDEO_MAIN_CLOSE = 0,
	VIDEO_DOWNBAR_PLAY = 0,
	VIDEO_DOWNBAR_STOP,
//	VIDEO_MAIN_FILEBROWSER,
	VIDEO_DOWNBAR_PREV,
	VIDEO_DOWNBAR_NEXT,
	MAX_DOWNBAR_BTN,
} VIDEO_DOWNBAR_BTN;

typedef enum _tagDownBarStatusBarDisplay
{
	VIDEO_DOWNBAR_STATUSBAR_VOLUME = 0,
//	VIDEO_MAIN_STATUSBAR_PROGRESS = 0,
	MAX_DOWNBAR_STATUSBAR,
} VIDEO_DOWNBAR_STATUSBAR;

typedef enum _tagDownBarStaticCtrl
{
	VIDEO_DOWNBAR_CURRENTTIME = 0,
	VIDEO_DOWNBAR_DURATIONTIME,
	MAX_DOWNBAR_CTRL,
} VIDEO_DOWNBAR_CTRL;

class UiDownBar :
	public UiWin
{
public:
	UiDownBar();
	~UiDownBar();

	BOOL InitUiWin(HWND hWnd);

	void PaintWin(HDC hdc, RECT* prcWin, RECT* prcUpdate);

	virtual int OnLButtonDown(UINT fwKeys, int xPos, int yPos);
	virtual int OnLButtonUp(UINT fwKeys, int xPos, int yPos);

	void LoadiInterItem();
	BOOL InitImages();
public:

	CUiStatusBar m_slideBar[MAX_DOWNBAR_STATUSBAR];

	UiStatic m_staticCtl[MAX_DOWNBAR_CTRL];

	iUiButton m_BtnDwonBar[MAX_DOWNBAR_BTN];

	ImagingHelper	*m_DownBarBG;

	HDC				m_hBakDC;
	HBITMAP			m_hBitmapBakDC;
};

#endif